Add support for read-only flag on GitHub tool configuration#1135
Merged
Add support for read-only flag on GitHub tool configuration#1135
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
Add support for a "read-only" flag on the github tool configuration in the front matter.
tools:
github:
read-only: true
Also when nothing is specified, it is equivalent to read-only, allow all tools.
tools:
github:
---
Readonly docs...
Add support for read-only flag on GitHub tool configuration
Oct 1, 2025
Collaborator
|
@copilot inline the env variable value in the args |
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Contributor
Author
Done in 6723b4b. The Generated Docker command: args: [
"-e", "GITHUB_PERSONAL_ACCESS_TOKEN",
"-e", "GITHUB_READ_ONLY=1",
"ghcr.io/github/github-mcp-server:sha-09deac4"
]
env:
GITHUB_PERSONAL_ACCESS_TOKEN: "${{ secrets.GITHUB_TOKEN }}"All engines (Claude, Codex, Copilot, Custom) now use this inlined format. |
pelikhan
approved these changes
Oct 1, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Successfully implemented support for a
read-onlyflag on the GitHub tool configuration in agentic workflows front matter.Implementation Checklist
read-onlyfield in GitHub tool configurationGITHUB_READ_ONLYenvironment variable to Docker command when read-only is trueChanges Made
Code Changes
Schema Changes
Documentation
Tests
Usage
Generated Output
When
read-only: trueis set:-e GITHUB_READ_ONLY=1(inlined value)Example:
Test Results
✅ All unit tests passing
✅ All integration tests passing
✅ Verified inlined env variable across all engines (Claude, Codex, Copilot, Custom)
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.